package com.wzcl.app.controller;

import com.wzcl.app.dao.model.EssayCourseStudyRecord;
import com.wzcl.app.model.common.RVO;
import com.wzcl.app.service.EssayCourseStudyRecordService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiOperation;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;
import javax.annotation.Resource;

/**
 * @author beingven
 * @Description TODO
 * @createTime 2021年01月03日 08:48:00
 */
@RestController
@RequestMapping("/studyRecord")
@Api(value = "作文课学习记录Controller", tags = {"作文课学习记录接口"})
public class EssayCourseStudyRecordController {
    @Resource
    private EssayCourseStudyRecordService essayCourseStudyRecordService;

    @PostMapping("/create")
    @ApiOperation("新增任务学习记录")
    public RVO startStudyTask(@RequestBody EssayCourseStudyRecord essayCourseStudyRecord){
        return essayCourseStudyRecordService.startStudyTask(essayCourseStudyRecord);
    }
}
